package hero.mps.web.school_student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

@Data
@RequiredArgsConstructor
@AllArgsConstructor
@Builder
@TableName("school_student")
public class SchoolStudent {

    @TableId(type = IdType.AUTO)
    /**
     * 学生id
     */
    private Integer stuId;

    /**
     * 角色id
     */
    @TableField(exist = false)
    private Integer roleId;
    @TableField(exist = false)
    private String className;
    @TableField(exist = false)
    private Integer collegeId;
    @TableField(exist = false)
    private String collegeName;
    @TableField(exist = false)
    private Integer majorId;
    @TableField(exist = false)
    private String majorName;

    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 学生姓名
     */
    private String stuName;

    /**
     * 性别0：男1：女
     */
    private String sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 入学时间
     */
    private String intoTime;

    /**
     * 学号
     */
    private String stuNum;

    /**
     * 密码
     */
    private String password;
}
